﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using SubSonic;
using Coolite.Ext.Web;
using CXDB;
using System.Xml;
using System.Xml.Xsl;
public partial class Search_myapply : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            Store1Databind();
        }
    }
    protected void Store1_OnRefreshData(object s, StoreRefreshDataEventArgs e)
    {
        Store1Databind();
    } 
    protected void Store1Databind()
    {
        Query q = new Query(CxApply.Schema);
        q.AddWhere("uid", Cookies.getCookies("cuid"));
        q.SetSelectList("id,uid,guid,reason,tbname,counttimes,status,intime,bossid,bossnod,DATEADD(day, 15, bosstime) as bosstime,usertime");
        q.ORDER_BY("id desc");
        Store1.DataSource = q.ExecuteDataSet();
        Store1.DataBind();
    } 

    protected void Button1_Click(object sender, EventArgs e)
    { 
        UltraWebGridExcelExporter1.Export(UltraWebGrid1);
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        UltraWebGridExcelExporter2.Export(UltraWebGrid2);
    }
    protected void Button3_Click(object sender, EventArgs e)
    {
        UltraWebGridExcelExporter3.Export(UltraWebGrid3);
    }
    protected void Button4_Click(object sender, EventArgs e)
    {
        UltraWebGridExcelExporter4.Export(UltraWebGrid4);
    } 
}
